package com.yunhe.option.service.data;

import com.yunhe.option.domain.data.PushConfig;
import com.yunhe.common.exception.ObjectNotFoundException;

import java.util.List;

public interface PushConfigService {

    PushConfig createPushConfig(PushConfig pushConfig);

    void deletePushConfig(String name);

    PushConfig updatePushConfig(String name,
                                Integer receiveMsg,
                                Integer voice,
                                Integer shock,
                                Integer charge,
                                Integer alarm,
                                Integer alarmClear)
            throws ObjectNotFoundException;

    PushConfig findPushConfig(String name);

    List<PushConfig> findPushConfig(String name,
                                    Integer alarm,
                                    Integer alarmClear,
                                    Integer charge);
}
